package com.eastcom.common.log;

import org.apache.log4j.Logger;
import org.aspectj.lang.JoinPoint;
import org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint;

import com.eastcom.common.util.MethodArgUtil;
import com.eastcom.providor.BMSetting;

public class ExtProviderLog {

	private static Logger log = BMSetting.getBMlog();

	public void beforeExtProvider(JoinPoint jp) {
		
		try {
			MethodInvocationProceedingJoinPoint mpjp = (MethodInvocationProceedingJoinPoint) jp;
			//log.info("############# Ext Provider  [ Class: "+mpjp.getThis().getClass()+ "  Method :  "+mpjp.getSignature().getName()+"("+MethodArgUtil.arrayToArgStr(mpjp.getArgs())+")  ]");
			log.info("############# Ext Provider  [ Class: "+mpjp.getThis().getClass()+ "  Method :  "+mpjp.getSignature().getName());
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

}
